-# frozen_string_literal: true
!!!
%html
  %head
    %meta(content="width=device-width" name="viewport")
    %meta(content="text/html; charset=UTF-8" http-equiv="Content-Type")
    %title= message.subject
    :sass
      body
        padding: 20px
        font:
          family: sans-serif
          size: 14px
        line:
          height: 1.5
      a
        color: #00ce75
        &.ellipsis
          display: block
          text:
            overflow: ellipsis
          white:
            space: nowrap
          max:
            width: 100%
          overflow: hidden
      ul
        &.no-margin
          margin: 0
      hr
        margin: 20px 0
        outline: none
        border: none
        border:
          top: 1px solid #f3f3f3
  %body
    %p
      #{@account.name},
    = yield
    %p
      Kind regards
      %br
      &#45;&#45;
      %br
      Zeke Gabrielse
      %br
      Founder &lt;https://keygen.sh&gt;
    %hr
    %small Technical information for your account, in case you need it:
    %ul.no-margin
      %li
        %small Account login: #{link_to "https://app.keygen.sh/login?account=" + @account.slug, "https://app.keygen.sh/login?account=" + @account.id} (p.s. bookmark for quicker access)
      %li
        %small Account machine ID: #{@account.id}
      %li
        %small Account human ID: #{@account.slug}
      %li
        %small Account name: #{@account.name}
      %li
        %small Admin email: #{@user.email}
